//bool, ObjList objs, str OUT reasonText

int min_resource_gold;

min_resource_gold = GetConst("MinResQtyToTransportGold");

if(objs.count)
{
	Building bld;
	bld = objs[0].AsBuilding();
	if(bld.IsValid())
	{
		Settlement this;
		this = bld.settlement;
		if(.IsValid())
		{
			if(.gold < min_resource_gold)
			{
				reasonText = rollover(bld,true) + "\n<color 255 0 0>";
				reasonText = reasonText + Translatef("Requires %s1 gold", min_resource_gold);
				return false;
			}
		}
	}
}
return true;